Skip to content

Make sure that ReadOnly is removed when using get_type_hints(include_extra=False)#349

Merged
JelleZijlstra merged 5 commits into
python:mainfrom
sobolevn:get_type_hints-ReadOnly
Mar 6, 2024
Merged

Make sure that ReadOnly is removed when using get_type_hints(include_extra=False)#349
JelleZijlstra merged 5 commits into
python:mainfrom
sobolevn:get_type_hints-ReadOnly

Conversation

@sobolevn

@sobolevn sobolevn commented Mar 5, 2024

Copy link
Copy Markdown
Member

I've noticed that while working on python/cpython#116127

@JelleZijlstra JelleZijlstra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Could you add a changelog entry and a versionchanged entry in the docs? Something like "When include_extra=False, get_type_hints() now strips :data:ReadOnly from the annotation."

@sobolevn

sobolevn commented Mar 6, 2024

Copy link
Copy Markdown
Member Author

Done, I assumed that the next version is 4.11.0

@JelleZijlstra JelleZijlstra merged commit c3dc681 into python:main Mar 6, 2024
@JelleZijlstra

Copy link
Copy Markdown
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants